package org.szx.dao;

import java.util.List;

import org.szx.model.ExamSubject;
import org.szx.model.ExamUser;

public interface SubjectDao extends IBaseDAO<ExamSubject>{

	public List<ExamSubject> findALLSubjects();

	public void createSubject(ExamSubject subject);

	public ExamSubject getSubByID(Integer sub_id);

	public void editSubject(ExamSubject subject);

	public void deleteUser(Integer sub_id);

	public List<ExamUser> findAllUsers();

	public List<String> getAllUserBySubject(Integer subjectId);

	public void insertSubjectUsers(List<String> insertList, Integer subjectId);

	public void deleteSubjectUsers(List<String> delList, Integer subjectId);

	public List<String> findALLSubjectsByUser(String userId);

	public List<String> findAllScoreByUser(String userId);

	public void insertUserSubjects(List<String> insertList, String userId);

	public void deleteUserSubjects(List<String> delList, String userId);

}
